package com.mti.controller;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(description = "测试消息队列")
@RestController
@AllArgsConstructor
@RequestMapping(value = "/api/queue")
public class TestController {
//    private final ProducerOperator producer;
//    @GetMapping("/hello")
//    @ApiOperation(value = "测试给消息队列发消息")
//    public Mono<String> hello(@RequestParam(value = "msg")@ApiParam(value = "msg") String msg) {
//        producer.sendMsg("",msg);
//        return Mono.just("success");
//    }


}
